#include <iostream>
#include <string>
using namespace std;

class Date
{
private:
    int Day, Month, Year;
public:
    Date(int inputDay, int inputMonth, int inputYear):Day(inputDay), Month(inputMonth), Year(inputYear){}
    void DislayDate(void)
    {
        cout << Year << "-" << Month << "-" << Day;
    }
    //重载运算符
    bool operator < (Date& obj)
    {
        return (Year < obj.Year || Month < obj.Month || Day < obj.Day);
    }
};

int main(int argc, char const *argv[])
{
    /* code */
    Date day1(7, 4, 2017);
    Date day2(7, 4, 2016);
    if(day1 < day2)
    {
        cout << "day1 is lesser than day2" << endl;
    }
    else
    {
        cout << "day1 is no lesser than day2" << endl;
    }
    return 0;
}
